package cx.ath.skyflyer.chart;

/**
 *
 * @author lego
 */
public class Color {

    public Color(int red, int green, int blue) {
        this.red = red;
        this.green = green;
        this.blue = blue;
    }

    public int intValue() {
        return blue + (green + red*256) * 256;
    }

    public final int red;
    public final int green;
    public final int blue;

    public static final Color BLACK = new Color(0,0,0);
    public static final Color BLUE = new Color(0,0,255);
    public static final Color GREEN = new Color(0,255,0);
    public static final Color CYAN = new Color(0,255,255);
    public static final Color RED = new Color(255,0,0);
    public static final Color MAGENTA = new Color(255,0,255);
    public static final Color YELLOW = new Color(255,255,0);
    public static final Color WHITE = new Color(255,255,255);
}
